import 'package:flutter/material.dart';

class CardDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Card(
      elevation: 10,
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        mainAxisAlignment: MainAxisAlignment.start,
        children: [
          AspectRatio(
            aspectRatio: 16 / 9,
            child: ClipRRect(
              borderRadius: BorderRadius.all(Radius.circular(10)),
              child: Image.network(
                "https://inews.gtimg.com/om_bt/OEiifLLMu9XqHsNUYz6GaNgOCBYpQJCbg1j68ZzBkhDJoAA/641",
                fit: BoxFit.fitWidth,
              ),
            ),
          ),
          CircleAvatar(
            backgroundImage: NetworkImage("https://img1.baidu.com/it/u=915834257,985645419&fm=253&fmt=auto&app=120&f=JPEG?w=751&h=500"),
          ),
          OverflowBar(
            overflowDirection: VerticalDirection.up,
            overflowAlignment: OverflowBarAlignment.center,
            alignment: MainAxisAlignment.end,
            spacing: 10,
            children: [
              ElevatedButton(onPressed: ()=>debugPrint(""), child: Text("cancel")),
              ElevatedButton(onPressed: ()=>debugPrint(""), child: Text("ok")),
              ElevatedButton(onPressed: ()=>debugPrint(""), child: Text("ok")),
              ElevatedButton(onPressed: ()=>debugPrint(""), child: Text("ok")),
              ElevatedButton(onPressed: ()=>debugPrint(""), child: Text("ok")),
             /* ElevatedButton(onPressed: ()=>debugPrint(""), child: Text("ok")),
              ElevatedButton(onPressed: ()=>debugPrint(""), child: Text("ok")),
              ElevatedButton(onPressed: ()=>debugPrint(""), child: Text("ok")),
              ElevatedButton(onPressed: ()=>debugPrint(""), child: Text("ok"))*/
            ],
          )
        ],)
    );
  }
}
